package com.wjc.train.member.req;

import com.wjc.train.common.entity.BaseModel;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 乘车人表
 * </p>
 *
 * @author Guessed
 * @since 2023-07-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PassengerSaveReq extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 姓名
     */
    @NotBlank(message = "[姓名不能为空]")
    private String name;

    /**+
     * 身份证
     */
    @NotBlank(message = "[身份证不能为空]")
    private String idCard;

    /**
     * 旅客类型
     */
    @NotNull(message = "[旅客类型不能为空]")
    private Integer type;


}
